package cn.luischen.model;

import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import org.junit.Rule;
import org.junit.runner.RunWith;
import org.junit.rules.ExpectedException;
import org.junit.Test;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.Whitebox;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.mockito.stubbing.Answer;
import java.lang.reflect.Method;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.TypeReference;
import com.alibaba.fastjson.parser.ParserConfig;
import java.util.Map;
import java.util.List;
import com.unitspirit.runtime.*;

/**
 * The class contains tests for the class cn.luischen.model.CommentDomain.
*
* @generatedBy UnitSpirit CreateTemplateTestFile4
* @version 1.0.9.11 
*/
@PowerMockIgnore({ "javax.management.*" })
public class CommentDomain_setAuthor_WGTest {
	@Rule
	public ExpectedException unitspirit_thrown = ExpectedException.none();

	/**
	* @date 2022-01-19 23:06:00
	* @see cn.luischen.model.CommentDomain#setAuthor
	* @category auto generate by UnitSpirit
	* @create by com.unitspirit.stg.gencase.impl.CaseForSubCallNormalImpl.collectCaseForNormal  
	*/
	@Test
	public void test_setAuthor_1207_113909_364_1_00() throws Throwable {

		cn.luischen.model.CommentDomain unitspirit_fixture = new cn.luischen.model.CommentDomain();/*getMethodParamInit*/
		/*getParamInitForCommon*/

		String String_p_0 = "111";
		//成员变量设置/*initClassField*/

		Whitebox.setInternalState(unitspirit_fixture, "author", "111");

		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.setAuthor(String_p_0);
		assertTrue(true);
	}

	/**
	* @date 2022-01-19 23:06:00
	* @see cn.luischen.model.CommentDomain#setAuthor
	* @category auto generate by UnitSpirit
	* @create by com.unitspirit.stg.gencase.impl.CaseForSubCallNormalImpl.collectCaseForNormal  
	*/
	@Test
	public void test_setAuthor_1207_113952_674_1_00() throws Throwable {

		cn.luischen.model.CommentDomain unitspirit_fixture = new cn.luischen.model.CommentDomain();/*getMethodParamInit*/
		/*getParamInitForCommon*/

		String String_p_0 = "111";
		//成员变量设置/*initClassField*/

		Whitebox.setInternalState(unitspirit_fixture, "author", "111");/*initClassField*/

		Whitebox.setInternalState(unitspirit_fixture, "created", 1607312348);/*initClassField*/

		Whitebox.setInternalState(unitspirit_fixture, "coid", 1);/*initClassField*/

		Whitebox.setInternalState(unitspirit_fixture, "cid", 27);

		//返回值定义
		//该函数无返回值

		unitspirit_fixture.setAuthor(String_p_0);
		assertTrue(true);
	}

}
